package game
{
	import game.command.once.AppStartCommand;
	import game.define.NotificationName;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	public class AppFacade extends Facade
	{
		public function AppFacade()
		{
			super();
		}
		
		public static function getInstance():AppFacade
		{
			if (!instance)
				instance = new AppFacade();
			return instance as AppFacade;
		}
		
		override protected function initializeController():void
		{
			super.initializeController();
			registerCommand(NotificationName.APP_START, AppStartCommand);
		}
		
		public function startup():void
		{
			sendNotification(NotificationName.APP_START);
		}
	}
}